package jp.dodododo.aop.config;

import java.lang.reflect.AccessibleObject;
import java.util.ArrayList;
import java.util.List;

import jp.dodododo.aop.Pointcut;

public class AspectDef {
	private List<Pointcut> pointcutList = new ArrayList<Pointcut>();
	private AccessibleObject staticPart;

	public AspectDef(AccessibleObject staticPart) {
		this.staticPart = staticPart;
	}

	public List<Pointcut> getPointcutList() {
		return pointcutList;
	}

	public void addPointcutList(Pointcut pointcut) {
		this.pointcutList.add(pointcut);
	}

	public AccessibleObject getStaticPart() {
		return staticPart;
	}

	@Override
	public String toString() {
		return "pointcutList = [" + pointcutList + "] staticPart = [" + staticPart + "]";
	}
}
